package io.renren.modules.study.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@TableName("course")
public class Course implements Serializable {

    /**
     * 用户ID
     */
    @TableId
    private int id;
    private int parentId;
    private String name;
    private String type;
    private String level;
    private int directionId;
    private int classificationId;
    private Integer integral;
    private String title;
    private String introduce;
    private String coverPath;
    private List<CourseBody> childBody;
    private int collectionCount;
    private String teacherName;
    private double price;

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date creatTime;
    private int subscribeTotal;
    private int teacherId;
    private String courseMustKnow;
    private int isOnline;

    private int talkTeacherId;


    public int getTalkTeacherId() {
        return talkTeacherId;
    }

    public void setTalkTeacherId(int talkTeacherId) {
        this.talkTeacherId = talkTeacherId;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public int getSubscribeTotal() {
        return subscribeTotal;
    }

    public void setSubscribeTotal(int subscribeTotal) {
        this.subscribeTotal = subscribeTotal;
    }

    public int getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(int teacherId) {
        this.teacherId = teacherId;
    }

    public String getCourseMustKnow() {
        return courseMustKnow;
    }

    public void setCourseMustKnow(String courseMustKnow) {
        this.courseMustKnow = courseMustKnow;
    }

    public int getIsOnline() {
        return isOnline;
    }

    public void setIsOnline(int isOnline) {
        this.isOnline = isOnline;
    }

    public int getCollectionCount() {
        return collectionCount;
    }

    public void setCollectionCount(int collectionCount) {
        this.collectionCount = collectionCount;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public String getCoverPath() {
        return coverPath;
    }

    public void setCoverPath(String coverPath) {
        this.coverPath = coverPath;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public List<CourseBody> getChildBody() {
        return childBody;
    }

    public void setChildBody(List<CourseBody> childBody) {
        this.childBody = childBody;
    }

    public int getDirectionId() {
        return directionId;
    }

    public void setDirectionId(int directionId) {
        this.directionId = directionId;
    }

    public int getClassificationId() {
        return classificationId;
    }

    public void setClassificationId(int classificationId) {
        this.classificationId = classificationId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }


    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", level='" + level + '\'' +
                ", directionId=" + directionId +
                ", classificationId=" + classificationId +
                ", integral=" + integral +
                ", title='" + title + '\'' +
                ", introduce='" + introduce + '\'' +
                ", coverPath='" + coverPath + '\'' +
                ", childBody=" + childBody +
                ", collectionCount=" + collectionCount +
                ", teacherName='" + teacherName + '\'' +
                ", price=" + price +
                ", creatTime=" + creatTime +
                ", subscribeTotal=" + subscribeTotal +
                ", teacherId=" + teacherId +
                ", courseMustKnow='" + courseMustKnow + '\'' +
                ", isOnline=" + isOnline +
                ", talkTeacherId=" + talkTeacherId +
                '}';
    }
}
